//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef _BL_UTIL_H
#define _BL_UTIL_H

#include "types.h"

void MyMemCpy(u32 *dest, const u32 *src, int numWords);
void MyMemSet(u32 *dest, const u32 wordToWrite, u32 numWords);
void MyMemSetChar(u8 *dest, const u8 charToWrite, int numChars);
void MyMemCpyChar(u8 *dest, const u8 *src, int numBytes);
int MyStrCmp(const char *s1, const char *s2, int maxlen);
int MyStrNCmp(const char *s1, const char *s2, int maxlen);
char *MyStrCpy(u8 *dest, const char *src);
char *MyStrChar(const char *s, char c);
int StrCmp(const char *s1, const char *s2);
u32 MyStrLen(const char *string);
int MyToUpper(int c);
int MyToLower(int c);
void Hex2Str3(char Hex, char* String3);

int printk(const char *fmt, ...);
void *MyMalloc(u32 nbytes);
void MyFree(u32 address);
int strtou32(const char *str, u32 *value);

int strncmp(const char *s1, const char *s2, size_t maxlen);

int printf(const char *fmt, ...);
void *memcpy(void *dest, const void *src, size_t n);
void *memset(void *dest, int c, size_t n);
int memcmp(const void * cs,const void * ct,size_t count);
int strlen(const char *s);

#endif
